-- GENERATED SPELL FOR [Venomtip] --


function spell0_28358(pUnit, Event) --@Cobra Strike,n/a--
pUnit:FullCastSpellOnTarget(61550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28358', 2000, 1)
end

function spell1_28358(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(32330,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28358', 12500, 1)
end

function Sorts_28358(pUnit, Event)
local choix_sorts_28358 = math.random(0, 1)
if choix_sorts_28358 == 0 then
pUnit:RegisterEvent('spell0_28358', 1, 1)
end
if choix_sorts_28358 == 1 then
pUnit:RegisterEvent('spell1_28358', 1, 1)
end
end

function mob28358_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28358', math.random(1500, 3000), 1)
end

function mob28358_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28358_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28358_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28358, 1, 'mob28358_Action')
RegisterUnitEvent(28358, 2, 'mob28358_Leave')
RegisterUnitEvent(28358, 3, 'mob28358_Kill')
RegisterUnitEvent(28358, 4, 'mob28358_Die')
